package com.wxtl.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Code entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "code", catalog = "upweb")
public class Code implements java.io.Serializable {

	// Fields

	private Integer codeId;
	private String keyName;
	private Integer value;
	private String displayText;
	private String remark;

	// Constructors

	/** default constructor */
	public Code() {
	}

	/** full constructor */
	public Code(String keyName, Integer value, String displayText, String remark) {
		this.keyName = keyName;
		this.value = value;
		this.displayText = displayText;
		this.remark = remark;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "codeId", unique = true, nullable = false)
	public Integer getCodeId() {
		return this.codeId;
	}

	public void setCodeId(Integer codeId) {
		this.codeId = codeId;
	}

	@Column(name = "keyName", length = 20)
	public String getKeyName() {
		return this.keyName;
	}

	public void setKeyName(String keyName) {
		this.keyName = keyName;
	}

	@Column(name = "value")
	public Integer getValue() {
		return this.value;
	}

	public void setValue(Integer value) {
		this.value = value;
	}

	@Column(name = "displayText", length = 20)
	public String getDisplayText() {
		return this.displayText;
	}

	public void setDisplayText(String displayText) {
		this.displayText = displayText;
	}

	@Column(name = "remark", length = 100)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}